//
//  XYJXCResultModel.m
//  徙游记-01
//
//  Created by hcios on 2017/7/12.
//  Copyright © 2017年 鹿林. All rights reserved.
//

#import "XYJXCResultModel.h"

@implementation XYJXCResultModel

-(instancetype)initWithMemoDict:(NSDictionary *)dict{
    
    if (self = [super init]) {
        _xc_plan_days_memo = NonEmptyString(dict[@"memo"]);
        _xc_plan_days_tips = NonEmptyString(dict[@"tips"]);
        _xc_plan_days_image_url = NonEmptyString(dict[@"image_url"]);
        _xc_plan_days_entry_name = NonEmptyString(dict[@"entry_name"]);
        _xc_plan_days_name_zh_cn = NonEmptyString(dict[@"name_zh_cn"]);
        _entry_id = numberToString(dict[@"entry_id"]);
    }
    return self;
}

-(instancetype)initWithPlanDict:(NSDictionary *)dict{
    
    if (self = [super init]) {
        _xc_plan_days_memo = NonEmptyString(dict[@"memo"]);
        _xc_plan_days_tips = NonEmptyString(dict[@"tips"]);
        _xc_plan_days_image_url = NonEmptyString(dict[@"image_url"]);
        _xc_plan_days_entry_name = NonEmptyString(dict[@"entry_name"]);
        _xc_plan_days_name_zh_cn = NonEmptyString(dict[@"name_zh_cn"]);
        _entry_id = numberToString(dict[@"id"]);
    }
    return self;
}

@end
